<%--
  Created by IntelliJ IDEA.
  User: wqe
  Date: 2023/6/14
  Time: 22:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        .message{
            width: 400px;
            height: 200px;
        }
    </style>
</head>
<body>
<div style="text-align: center">
    <a href="loginout">退出登录</a><br><br>
    <form action="message" method="post">
        留言:<input type="text" name="" id="message"><br><br>
        <input type="submit" value="提交">
        <input type="button" id="re" value="重置">
    </form>
</div>

<script>
    let re = document.querySelector("#re");
    let message = document.querySelector("#message");
    re.onclick = function () {
        message.value = '';
    }
</script>
</body>
</html>
